<!DOCTYPE html>
<html>
<head>
    <!--[if lt IE 7]>
    <div class="ie6_error">还在用<strong>漏洞百出的IE6浏览器</strong>么？为了您的网络安全，请升级浏览器 <a target="_blank"
                                                                               href="http://browsehappy.com">立即升级</a>
    </div>
    <![endif]-->

    <meta charset="utf-8">
    <title>审批中心-待审批-文具1号</title>
    <meta name="description"
          content="文具1号作为上海办公用品供货商公司,专为世界500强企业及SOHO办公族提供网上商城一站式办公耗材批发及采购服务,一站式选购办公日用文具用品,厂家直销,好货又便宜【阳光采购就上文具1号 阳光价格 老板放心 品质保障 员工省力】"/>
    <meta name="keywords" content="办公用品,办公文具,办公文具网站,文具网站,办公用品网,文具采购网,金万年"/>
    <meta name="copyright" content="上海易推信息科技有限公司"/>
    <meta name="renderer" content="webkit">
    <base href="<?php echo base_url(); ?>"/>

    <link rel="stylesheet" type="text/css" href="public/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/index.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/offlinePayment.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/cart.css?v=11111111"/>
    <!--[if lte IE 9]>
    <script type="text/javascript" src="../public/js/html5shiv-printshiv-3.js"></script>
    <![endif]-->
    <script src="public/js/jquery.1.7.1-min.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<?php $this->load->view('common/header.php'); ?>
<div class="bg">
    <div class="container mt30">
        <div class="w main">
            <div class="m m3" id="qpay" style="position: relative; display:block; padding-top:20px;">
                <div class="mc">
                    <div class="fore" style="margin-left:30px;margin-bottom:20px;">
                        <ul class="list-h">
                            <li class="pay-zq">
                                <!-- <span class="name">直接付款：</span>
                                <a href="javascript:;" class="pay-zq-btn">立即支付</a> -->
                                <span class="name">直接付款或递交付款申请：</span>
                                <input type="text" placeholder="审批人姓名" name="name" class="pay-zq-input-name">
                                <input type="text" placeholder="审批人邮箱" name="email" class="pay-zq-input-email">
                                <input type="text" placeholder="备注" name="remark" class="pay-zq-input-bz">
                                <a href="javascript:;" class="pay-zq-btn send-email">确认发送</a>
                            </li>
                            <li class="fore1">账单号：<?= $bill_bn ?></li>
                            <li class="fore1">还款金额：<strong class="ftx-01">￥<?= $money ?> 元</strong></li>
                            <li class="fore2">还款日：<strong class="ftx-01"><?= $should_repayment_date ?></strong></li>
                        </ul>
                        <!--   <p id="p_show_info">积分抵扣：￥0.00  优惠券抵扣：￥0.00 礼品券抵扣：￥0.00 红包抵扣：￥0.00 </p> -->
                        <p class="reminder">
                            付款成功后即可恢复账期额度，如到还款日期仍未还款，将自动冻结您的账期支付功能，账期额度也将受到影响。
                        </p>
                        <hr class="hr-line">

                        <?php if ($bill_approve && count($bill_approve)): ?>
                            <?php foreach ($bill_approve as $value): ?>

                                <div class="pay-zq-list">
                            <span class="pay-zq-icon01 images-message-hidden">
                                <img src="public/images/btn_opentip.png" style="padding-bottom: 5px;" alt="">
                            </span>
                                    <p class="pay-zq-list-item">
                                        <span class="span01">发件人：</span><?= $value['created_at'] ?><span
                                                class="span01"><?= $customer_info['username'] ?>
                                              ---  <?= $customer_info['email'] ?></span><span
                                                class="span02">（<?= $value['remark'] ? $value['remark'] : "/" ?>）</span>
                                    </p>
                                    <div class="hidden-message">
                                        <p class="pay-zq-list-item">
                                            <span class="span01">收件人：</span><?= $value['created_at'] ?><span
                                                    class="span01"><?= $value['name'] ?>
                                                  ---  <?= $value['email'] ?></span><span
                                                    class="span02">（<?= $value['remark'] ? $value['remark'] : "/" ?>
                                                ）</span>
                                        </p>
                                        <?php if ($value['child']): ?>
                                            <?php foreach ($value['child'] as $k => $vo): ?>
                                                <p class="pay-zq-list-item">
                                                    <span class="span01">收件人：</span><?= $vo['created_at'] ?><span
                                                            class="span01"><?= $vo['name'] ?>
                                                          ---  <?= $vo['email'] ?></span><span
                                                            class="span02">（<?= $vo['remark'] ? $vo['remark'] : "/" ?>
                                                        ）</span>
                                                </p>
                                                <?php if ($value['child'][$k]['child']): ?>
                                                    <?php foreach ($value['child'][$k]['child'] as $i => $bo): ?>
                                                        <p class="pay-zq-list-item">
                                                            <span class="span01">收件人：</span><?= $bo['created_at'] ?>
                                                            <span
                                                                    class="span01"><?= $bo['name'] ?>
                                                                  ---  <?= $bo['email'] ?></span><span
                                                                    class="span02">（<?= $bo['remark'] ? $bo['remark'] : "/" ?>
                                                                ）</span>
                                                        </p>
                                                        <?php if ($value['child'][$k]['child'][$i]['child']): ?>
                                                            <?php foreach ($value['child'][$k]['child'][$i]['child'] as $j => $ao): ?>
                                                                <p class="pay-zq-list-item">
                                                                    <span class="span01">收件人：</span><?= $ao['created_at'] ?>
                                                                    <span
                                                                            class="span01"><?= $ao['name'] ?>
                                                                          ---  <?= $ao['email'] ?></span><span
                                                                            class="span02">（<?= $ao['remark'] ? $ao['remark'] : "/" ?>
                                                                        ）</span>
                                                                </p>
                                                                <?php if ($value['child'][$k]['child'][$i]['child'][$j]['child']): ?>
                                                                    <?php foreach ($value['child'][$k]['child'][$i]['child'][$j]['child'] as $h => $ho): ?>
                                                                        <p class="pay-zq-list-item">
                                                                            <span class="span01">收件人：</span><?= $ho['created_at'] ?>
                                                                            <span
                                                                                    class="span01"><?= $ho['name'] ?>
                                                                                  ---  <?= $ho['email'] ?></span><span
                                                                                    class="span02">（<?= $ho['remark'] ? $ho['remark'] : "/" ?>
                                                                                ）</span>
                                                                        </p>
                                                                        <?php if ($value['child'][$k]['child'][$i]['child'][$j]['child'][$h]['child']): ?>
                                                                            <?php foreach ($value['child'][$k]['child'][$i]['child'][$j]['child'][$h]['child'] as $c => $co): ?>
                                                                                <p class="pay-zq-list-item">
                                                                                    <span class="span01">收件人：</span><?= $co['created_at'] ?>
                                                                                    <span
                                                                                            class="span01"><?= $co['name'] ?>
                                                                                          ---  <?= $co['email'] ?></span><span
                                                                                            class="span02">（<?= $co['remark'] ? $co['remark'] : "/" ?>
                                                                                        ）</span>
                                                                                </p>
                                                                                <?php if ($value['child'][$k]['child'][$i]['child'][$j]['child'][$h]['child'][$c]['child']): ?>
                                                                                    <?php foreach ($value['child'][$k]['child'][$i]['child'][$j]['child'][$h]['child'][$c]['child'] as $d => $do): ?>
                                                                                        <p class="pay-zq-list-item">
                                                                                            <span class="span01">收件人：</span><?= $do['created_at'] ?>
                                                                                            <span
                                                                                                    class="span01"><?= $do['name'] ?>
                                                                                                  ---  <?= $do['email'] ?></span><span
                                                                                                    class="span02">（<?= $do['remark'] ? $do['remark'] : "/" ?>
                                                                                                ）</span>
                                                                                        </p>
                                                                                    <?php endforeach; ?>
                                                                                <?php endif; ?>
                                                                                <?php if ($value['child'][$k]['child'][$i]['child'][$j]['child'][$h]['child'][$c]['child'][$d]['child']): ?>
                                                                                    <?php foreach ($value['child'][$k]['child'][$i]['child'][$j]['child'][$h]['child'][$c]['child'][$d]['child'] as $e => $eo): ?>
                                                                                        <p class="pay-zq-list-item">
                                                                                            <span class="span01">收件人：</span><?= $eo['created_at'] ?>
                                                                                            <span
                                                                                                    class="span01"><?= $eo['name'] ?>
                                                                                                  ---  <?= $eo['email'] ?></span><span
                                                                                                    class="span02">（<?= $eo['remark'] ? $eo['remark'] : "/" ?>
                                                                                                ）</span>
                                                                                        </p>
                                                                                        <?php if ($value['child'][$k]['child'][$i]['child'][$j]['child'][$h]['child'][$c]['child'][$d]['child'][$e]['child']): ?>
                                                                                            <?php foreach ($value['child'][$k]['child'][$i]['child'][$j]['child'][$h]['child'][$c]['child'][$d]['child'][$e]['child'] as $f => $fo): ?>
                                                                                                <p class="pay-zq-list-item">
                                                                                                    <span class="span01">收件人：</span><?= $fo['created_at'] ?>
                                                                                                    <span
                                                                                                            class="span01"><?= $fo['name'] ?>
                                                                                                          ---  <?= $fo['email'] ?></span><span
                                                                                                            class="span02">（<?= $fo['remark'] ? $fo['remark'] : "/" ?>
                                                                                                        ）</span>
                                                                                                </p>
                                                                                            <?php endforeach; ?>
                                                                                        <?php endif; ?>
                                                                                    <?php endforeach; ?>
                                                                                <?php endif; ?>
                                                                            <?php endforeach; ?>
                                                                        <?php endif; ?>
                                                                    <?php endforeach; ?>
                                                                <?php endif; ?>
                                                            <?php endforeach; ?>
                                                        <?php endif; ?>
                                                    <?php endforeach; ?>
                                                <?php endif; ?>
                                            <?php endforeach; ?>
                                        <?php endif; ?>

                                    </div>
                                    <!-- <span class="pay-zq-icon02">
                                      <img src="public/images/btn_Shuttip.png" alt="">
                                    </span> -->
                                </div>
                            <?php endforeach; ?>
                        <?php endif; ?>
                    </div>
                </div>

                <?php if($type == 1):?>
                <div style="position:absolute;right:20px;bottom:10px;">
                    <a href="<?php echo base_url('bill/bill_index'); ?>?bill_id=<?php echo $bill_id; ?>"
                       target="_blank">
                        <img src="public/images/print_account.png" class="print-image">
                    </a>
                </div>
                <?php endif;?>
            </div>

            <input id="savingsFlag" name="savingsFlag" type="hidden" value="0">
            <input id="creditFlag" name="creditFlag" type="hidden" value="0">
            <input id="ruDebitFlag" name="ruDebitFlag" type="hidden" value="0">
            <input id="ruCreditFlag" name="ruCreditFlag" type="hidden" value="0">
            <div class="mt">
                <ul class="tab">
                    <li data-widget="tab-item" class="business curr" clstag="payment|keycount|paymenttab|platform"
                        style="color: rgb(255, 102, 0);">企业支付
                    </li>
                </ul>
                <div class="extra">
                    <!--帮助-->
                </div>
            </div>
            <div class="m tabs" id="qpay03">
                <div class="mc" id="pay_type">
                    <div class="tabcon ol3 newpay-tab business">
                        <ul class="bank-list newpay" id="common_bank_oneB2B" gdata-url="">
                            <li class="select newpay-li">
                                <input type="radio" id="easypayRadioB2B" checked="" class="radio" name="RadioGroup3">
                                <div class="bank-info" style="background: none;width: 130px;">
                                    <label for="easypayRadioB2B">
                                        <img alt="快钱企业" class="newpay-pic" src="public/images/easypay.jpg">
                                    </label>
                                </div>
                            </li>
                        </ul>
                        <hr style="border-top-style:1px solid #ccc;">
                        <div class="mpart fore1">
                            <div id="epDivB2B" class="payContentDivB2B" style="display:block;">
                                <ul class="bank-list newpay">
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="CMB_B2B" class="radio bankItem" name="RadioGroup"
                                                   value="CMB" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="CMB_B2B">
                                                    <img alt="CMB_B2B" class="newpay-pic" src="public/images/cmb.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="ICBC_B2B" class="radio bankItem" name="RadioGroup"
                                                   value="ICBC" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="ICBC_B2B">
                                                    <img alt="ICBC_B2B" class="newpay-pic" src="public/images/icbc.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="ABC_B2B" class="radio bankItem" name="RadioGroup"
                                                   value="ABC" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="ABC_B2B">
                                                    <img alt="ABC_B2B" class="newpay-pic" src="public/images/abc.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="CCB_B2B" class="radio bankItem" name="RadioGroup"
                                                   value="CCB" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="CCB_B2B">
                                                    <img alt="CCB_B2B" class="newpay-pic" src="public/images/ccb.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="BCOM_B2B" class="radio bankItem" name="RadioGroup"
                                                   value="BCOM" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="BCOM_B2B">
                                                    <img alt="BCOM_B2B" class="newpay-pic" src="public/images/bcom.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="BOC_B2B" class="radio bankItem" name="RadioGroup"
                                                   value="BOC" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="BOC_B2B">
                                                    <img alt="BOC_B2B" class="newpay-pic" src="public/images/boc.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="SPDB_B2B" class="radio bankItem" name="RadioGroup"
                                                   value="SPDB" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="SPDB_B2B">
                                                    <img alt="SPDB_B2B" class="newpay-pic" src="public/images/spdb.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="CIB_B2B" class="radio bankItem" name="RadioGroup"
                                                   value="CIB" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="CIB_B2B">
                                                    <img alt="CIB_B2B" class="newpay-pic" src="public/images/cib.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="CEB_B2B" class="radio bankItem" name="RadioGroup"
                                                   value="CEB" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="CEB_B2B">
                                                    <img alt="CEB_B2B" class="newpay-pic" src="public/images/ceb.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="CMBC" class="radio bankItem" name="RadioGroup"
                                                   value="CMBC" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="CMBC">
                                                    <img alt="CMBC" class="newpay-pic" src="public/images/cmbc.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="CITIC" class="radio bankItem" name="RadioGroup"
                                                   value="CITIC" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="CITIC">
                                                    <img alt="CITIC" class="newpay-pic" src="public/images/citic.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="SHB" class="radio bankItem" name="RadioGroup"
                                                   value="SHB" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="SHB">
                                                    <img alt="SHB" class="newpay-pic" src="public/images/shb.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                    <li style=" padding: 0 10px;;margin: 0;border: 0;margin-left:35px;">
                                        <a href="javascript:void(0);">
                                            <input type="radio" id="PSBC" class="radio bankItem" name="RadioGroup"
                                                   value="PSBC" style="top:16px;">
                                            <div class="bank-info" style="background: none;">
                                                <label for="PSBC">
                                                    <img alt="PSBC" class="newpay-pic" src="public/images/psbc.png">
                                                </label>
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                                <div><a href="javascript:void(0)" id="easypayBtnB2B"><img src="public/images/u102.jpg"></a>
                                </div>
                                <form id="frmEasyPayB2B"
                                      action="https://sandbox.99bill.com/gateway/recvMerchantInfoAction.htm"
                                      method="post" target="_blank">
                                    <input type="hidden" name="inputCharset" value="<?PHP echo $inputCharset; ?>"/>
                                    <input type="hidden" name="pageUrl" value="<?PHP echo $pageUrl; ?>"/>
                                    <input type="hidden" name="bgUrl" value="<?PHP echo $bgUrl; ?>"/>
                                    <input type="hidden" name="version" value="<?PHP echo $version; ?>"/>
                                    <input type="hidden" name="language" value="<?PHP echo $language; ?>"/>
                                    <input type="hidden" name="signType" value="<?PHP echo $signType; ?>"/>
                                    <input type="hidden" name="signMsg" value=""/>
                                    <input type="hidden" name="merchantAcctId" value="<?PHP echo $merchantAcctId; ?>"/>
                                    <input type="hidden" name="payerName" value="<?PHP echo $payerName; ?>"/>
                                    <input type="hidden" name="payerContactType"
                                           value="<?PHP echo $payerContactType; ?>"/>
                                    <input type="hidden" name="payerContact" value="<?PHP echo $payerContact; ?>"/>
                                    <input type="hidden" name="orderId" value="<?PHP echo $orderId; ?>"/>
                                    <input type="hidden" name="orderAmount" value="<?PHP echo $orderAmount; ?>"/>
                                    <input type="hidden" name="orderTime" value="<?PHP echo $orderTime; ?>"/>
                                    <input type="hidden" name="productName" value="<?PHP echo $productName; ?>"/>
                                    <input type="hidden" name="productNum" value="<?PHP echo $productNum; ?>"/>
                                    <input type="hidden" name="productId" value="<?PHP echo $productId; ?>"/>
                                    <input type="hidden" name="productDesc" value="<?PHP echo $productDesc; ?>"/>
                                    <input type="hidden" name="ext1" value="<?PHP echo $ext1; ?>"/>
                                    <input type="hidden" name="ext2" value="<?PHP echo $ext2; ?>"/>
                                    <input type="hidden" name="payType" value="<?PHP echo $payType; ?>"/>
                                    <input type="hidden" name="bankId" value="<?PHP echo $bankId; ?>"/>
                                    <input type="hidden" name="redoFlag" value="<?PHP echo $redoFlag; ?>"/>
                                    <input type="hidden" name="pid" value="<?PHP echo $pid; ?>"/>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $this->load->view('common/bottom.php'); ?>


<!--<script type="text/javascript" src="public/js/jquery.min.js"></script>-->
<!--<script type="text/javascript" src="public/js/index.js"></script>-->
<!--<script type="text/javascript" src="public/js/owl.carousel.min.js"></script>-->

<script type="text/javascript">
    $(function () {
        $('input[name=RadioGroup]').click(function () {
            var bankId = $(this).val();
            $("input[name=bankId]").val(bankId);
            var inputCharset = "<?php echo $inputCharset ?>";
            var pageUrl = "<?php echo $pageUrl ?>";
            var bgUrl = "<?php echo $bgUrl ?>";
            var version = "<?php echo $version ?>";
            var language = "<?php echo $language ?>";
            var signType = "<?php echo $signType ?>";
            var merchantAcctId = "<?php echo $merchantAcctId ?>";
            var payerName = "<?php echo $payerName ?>";
            var payerContactType = "<?php echo $payerContactType ?>";
            var payerContact = "<?php echo $payerContact ?>";
            var orderId = "<?php echo $orderId ?>";
            var orderAmount = "<?php echo $orderAmount ?>";
            var orderTime = "<?php echo $orderTime ?>";
            var productName = "<?php echo $productName ?>";
            var productNum = "<?php echo $productNum ?>";
            var productId = "<?php echo $productId ?>";
            var productDesc = "<?php echo $productDesc ?>";
            var ext1 = "<?php echo $ext1 ?>";
            var ext2 = "<?php echo $ext2 ?>";
            var payType = "<?php echo $payType ?>";
            var bankId = bankId;
            var redoFlag = "<?php echo $redoFlag ?>";
            var pid = "<?php echo $pid ?>";
            $.post(
                "<?php echo base_url()?>pay/sign",
                {
                    "inputCharset": inputCharset,
                    "pageUrl": pageUrl,
                    "bgUrl": bgUrl,
                    "version": version,
                    "language": language,
                    "signType": signType,
                    "merchantAcctId": merchantAcctId,
                    "payerName": payerName,
                    "payerContactType": payerContactType,
                    "payerContact": payerContact,
                    "orderId": orderId,
                    "orderAmount": orderAmount,
                    "productName": productName,
                    "orderTime": orderTime,
                    "productNum": productNum,
                    "productId": productId,
                    "productDesc": productDesc,
                    "ext1": ext1,
                    "ext2": ext2,
                    "payType": payType,
                    "bankId": bankId,
                    "redoFlag": redoFlag,
                    "pid": pid
                },
                function (res) {
                    if (res.code == 0) {
                        console.log(bankId)
                        $("input[name=signMsg]").val(res.data);
                    }
                }, "json");
        })

        // $(".images-message-hidden").click(function(){
        //     $(this).removeClass('images-message-hidden');
        //     $(this).addClass('images-message-display');
        //     $('.hidden-message').css('display','none');
        // })
        // $(".images-message-display").click(function(){
        //     console.log('sss')
        //     $(this).addClass('images-message-hidden');
        //     $(this).removeClass('images-message-display');
        //     $('.hidden-message').css('display','block');
        // })
    });

    $("#easypayBtnB2B").click(function () {
        var bankId = $("input[name=bankId]").val();
        if (bankId == "") {
            alert('请选择银行');
            return false;
        }
        $("#frmEasyPayB2B").submit();
    })
    var flag = true;
    $(".send-email").click(function () {
        if (flag == false) {
            return false;
        }
        flag = false;
        var name = $("input[name=name]").val();
        var email = $("input[name=email]").val();
        var remark = $("input[name=remark]").val();
        var bill_bn = "<?=$bill_bn?>";
        var pre_id = "<?=$pre_id?>";
        if (name == "") {
            alert('请输入审批人姓名');
            return false;
        }
        if (email == "") {
            alert('请输入审批人邮箱');
            return false;
        }
        $.post("<?php echo base_url()?>pay/send_email", {
            "name": name,
            "email": email,
            "remark": remark,
            "id": pre_id,
            "bill_bn": bill_bn
        }, function (res) {
            if (res.code == 0) {
                flag = true;
                alert(res.msg);
                location.reload();
            } else {
                alert(res.msg);
            }
        }, "json")
    })
</script>

</body>
</html>

